package com.fauks.ndk

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.fauks.ndk.databinding.ActivityNdkMainBinding

/**
 * <pre>
 *     author : slx
 *     time   : 2021/06/29
 *     desc   :
 * </pre>
 */
class NDKMainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val inflate = ActivityNdkMainBinding.inflate(layoutInflater)

        setContentView(inflate.root)

        inflate.apply {
            btnBasic.setOnClickListener {
                startActivity(Intent(this@NDKMainActivity, NDKBasicActivity::class.java))
            }

            btnFfmpeg.setOnClickListener {
                startActivity(Intent(this@NDKMainActivity, FFmpegActivity::class.java))
            }
        }
    }
}